home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
p4
/
p4-1_2c.lha
/
p4-1.2c
/
bin
/
makefuncs
< prev
next >
Wrap
Text File
|
1993-05-24
|
366b
|
16 lines
#!/bin/csh -f
# Create the funcdecls.h file from the source in the directory
if ($#argv == 0) then
set files="*.c"
else
set files="$*"
endif
grep '^[A-Za-z].*)[^;]*$' $files | sed 's/^[^:]*://' | \
grep -v '^[ ]*static' | egrep -v '([^a-z_])?main\(' | \
sed -e 's/ *$//' -e '/^[^ ]*$/s/^/int /' | sed 's/$/;/' | \
sed 's/(.*)/()/' | \
sort +1 | uniq